package top.zhangjianyong.tools.config.web;

import org.springframework.core.convert.converter.Converter;
import top.zhangjianyong.tools.utils.DateTimeUtil;

import java.time.YearMonth;

/**
 * @author ： zhangjianyong
 * @date ： 2022/8/11 4:26 PM
 */
public class YearMonthConverter implements Converter<String, YearMonth> {

    @Override
    public YearMonth convert(String source) {
        return DateTimeUtil.parseMonth(source);
    }
}
